package com.poly;

public class PolyDetail02 {
    public static void main(String[] args) {
        Base base = new Base();
        Sub sub = new Sub();
        System.out.println(base.count);
        System.out.println(sub.count);
        //此处
        Base Base1 = new Sub();
        System.out.println(Base1.count);
    }
}


class Base {
    public int count = 10;
}

class Sub extends Base {
    public int count = 20;
}
